package mappers;

import java.util.List;

import models.Friend;
import models.User;

import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    public List<User> selectAll();
    public User getUserByUsername(@Param("username")String username);
    public User getUserByUserId(@Param("user_id")int user_id);
    public List<User> getFriendsByUsername(@Param("username")String username);
    public List<User> getFriendsByUserId(@Param("user_id")int user_id);
	public List<User> getFriendsByNumber(@Param("user")User user);
	public void updateRelationship(@Param("user")User user);
}
